package com.pattern.once.adapter;

public class Adapter implements Adaptee {

    private Target target;

    public Adapter(Target target) {
        this.target = target;
    }

    @Override
    public String getUserName() {
        String name = target.getUser().get("name");
        return name;
    }
}
